import React from 'react';
import { useNavigate } from 'react-router-dom';

import { Button, Grid } from 'antd-mobile';

import NavBar from '../components/NavBar/NavBar';
const WelcomePage = () => {
  const navigate = useNavigate(); // 获取 navigate 函数

  // 定义一个函数来处理点击事件
  const handleClick = () => {
    navigate('/data-fetch'); // 导航到 DataFetchPage 页面的路径
  };

  return (
    <div>
      <NavBar></NavBar>
      <h1 className="text-3xl font-bold underline">Welcome to the App!</h1>
    </div>
  );
};

export default WelcomePage;
